$OpenBSD: patch-gcc_gcc_c,v 1.1.1.1 2016/09/04 16:20:17 pascal Exp $
--- gcc/gcc.c.orig	Mon Aug 15 13:19:34 2016
+++ gcc/gcc.c	Tue Aug 23 16:13:48 2016
@@ -920,7 +920,7 @@ proper position among the other output files.  */
 #else
 #define LD_PIE_SPEC ""
 #endif
-#define LINK_PIE_SPEC "%{no-pie:} " "%{" PIE_SPEC ":" LD_PIE_SPEC "} "
+#define LINK_PIE_SPEC "%{pie:-pie} %{p|pg|nopie:-nopie} "
 #endif
 
 #ifndef LINK_BUILDID_SPEC
